package pojo.dao.manager.impl;

import pojo.dao.PojoDao;
import pojo.dao.impl.PojoDaoImpl;
import pojo.dao.manager.PojoDaoManager;

public class PojoDaoManagerFactory {

	private static PojoDaoManager manager;
	private static PojoDao pojoDao;
	public static PojoDaoManager getInstance(){
		if(manager==null)
		{
			manager=new PojoDaoManagerImpl();
		}
		return manager;
	}
	public static PojoDao getInstanceDao(){
		if(pojoDao==null)
		{
			pojoDao=new PojoDaoImpl();
		}
		return pojoDao;
	}
}
